{#
/**
 * @file
 * Default theme implementation for the version display of a project.
 *
 * Available variables:
 * - attributes: HTML attributes suitable for a container element.
 * - title: The title of the project.
 * - version:  A list of data about the latest released version, containing:
 *   - version: The version number.
 *   - date: The date of the release.
 *   - download_link: The URL for the downloadable file.
 *   - release_link: The URL for the release notes.
 *
 * @see template_preprocess_update_version()
 *
 * @ingroup themeable
 */
#}
<table class="{{ attributes.class }} version"{{ attributes|without('class') }}>
  <tr>
    <td class="version-title">{{ title }}</td>
    <td class="version-details">
      <a href="{{ version.release_link }}">{{ version.version }}</a>
      <span class="version-date">({{ version.date|date('Y-M-d') }})</span>
    </td>
    <td class="version-links">
      <ul class="links">
        <li class="download">
          <a href="{{ version.download_link }}">{{ 'Download'|t }}</a>
        </li>
        <li class="release-notes">
          <a href="{{ version.release_link }}">{{ 'Release notes'|t }}</a>
        </li>
      </ul>
    </td>
  </tr>
</table>
